package com.lagou.edu.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="lagou-code")
public interface CodeFeign {


    @RequestMapping(value="/code/validate/{email}/{code}", method = RequestMethod.POST)
    public String validate(@PathVariable("email") String email, @PathVariable("code") String code);



    @RequestMapping(value="/code/create/{email}", method = RequestMethod.POST)
    public String sendCode(@PathVariable("email") String email);
}
